package com.zhuang.designpattern.visitor;

import com.zhuang.designpattern.visitor.visitor.impl.Parent;
import com.zhuang.designpattern.visitor.visitor.impl.Principal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * description: Test
 * date: 2022/9/22 17:27
 * author: Zhuang
 * version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        final Logger logger = LoggerFactory.getLogger(Test.class);

            DataView dataView = new DataView();

            logger.info("\r\n家长视角访问：");
            dataView.show(new Parent());     // 家长

            logger.info("\r\n校长视角访问：");
            dataView.show(new Principal());  // 校长
    }
}
